import request from "@/utils/request";

export function queryGeneratorCodeConfigListByConditionMap2(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeConfig/queryGeneratorCodeConfigListByConditionMap2',
    method: 'get',
    params: data,
  })
}

export function downloadDataToExcel(data) {

  return request({
    url: 'api/efficiencyTools/generatorCodeConfig/downloadGeneratorCodeConfigListByCondition',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}


export function queryGeneratorCodeConfigByCondition(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeConfig/queryGeneratorCodeConfigByCondition',
    method: 'get',
    params: data,
  })
}


export function updateGeneratorCodeConfig(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeConfig/updateGeneratorCodeConfig',
    method: 'post',
    data: data,
  })
}

export function saveGeneratorCodeConfigSingleLineData(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeConfig/saveGeneratorCodeConfigSingleLineData',
    method: 'post',
    data: data,
  })
}

export function deleteGeneratorCodeConfigByIntegerIdList(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeConfig/deleteGeneratorCodeConfigByIntegerIdList',
    method: 'delete',
    params: data,
  })
}

export function insertByExcel(data) {
  return request({
    url: '/api/efficiencyTools/generatorCodeConfig/insertByExcel',
    method: 'post',
    data: data
  })
}
